﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Portal.Model;
using Portal.Models.SkillsCatalog;

namespace Portal.Repository.SkillsCatalog
{
	/// <summary>
	/// Interface <see cref="ICurriculumVitaeRepository"/> declare repository of CurriculumVitae
	/// </summary>
	public interface ICurriculumVitaeRepository : IDisposable
	{

		/// <summary>
		/// Gets the cv by user.
		/// </summary>
		/// <param name="userId">The user identifier.</param>
		/// <returns>
		/// CV
		/// </returns>
		ICurriculumVitae GetByUser(int userId);

		/// <summary>
		/// Gets the cv preview by user.
		/// </summary>
		/// <param name="userId">The user identifier.</param>
		/// <returns>CV preview</returns>
		ICurriculumVitaePreview GetPreviewByUser(int userId);
		
	}
}
